// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

// 云函数入口函数
//检查文字安全性
exports.main = async (event, context) =>{
  const openid = cloud.getWXContext().OPENID
  let {content} = event
  try {
    return  await  cloud.openapi.security.msgSecCheck({
      content
    })
  } catch (error) {
     return error
  }
}
//特3456书yuuo莞6543李zxcz蒜7782法fgnv级